package com.ruoyi.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ai.mapper.VolunteerLogMapper;
import com.ruoyi.ai.domain.VolunteerLog;
import com.ruoyi.ai.service.IVolunteerLogService;

/**
 * 填报日志Service业务层处理
 * 
 * @author zyf
 * @date 2024-09-27
 */
@Service
public class VolunteerLogServiceImpl implements IVolunteerLogService 
{
    @Autowired
    private VolunteerLogMapper volunteerLogMapper;

    /**
     * 查询填报日志
     * 
     * @param id 填报日志主键
     * @return 填报日志
     */
    @Override
    public VolunteerLog selectVolunteerLogById(Long id)
    {
        return volunteerLogMapper.selectVolunteerLogById(id);
    }

    /**
     * 查询填报日志列表
     * 
     * @param volunteerLog 填报日志
     * @return 填报日志
     */
    @Override
    public List<VolunteerLog> selectVolunteerLogList(VolunteerLog volunteerLog)
    {
        return volunteerLogMapper.selectVolunteerLogList(volunteerLog);
    }

    /**
     * 新增填报日志
     * 
     * @param volunteerLog 填报日志
     * @return 结果
     */
    @Override
    public int insertVolunteerLog(VolunteerLog volunteerLog)
    {
        return volunteerLogMapper.insertVolunteerLog(volunteerLog);
    }

    /**
     * 修改填报日志
     * 
     * @param volunteerLog 填报日志
     * @return 结果
     */
    @Override
    public int updateVolunteerLog(VolunteerLog volunteerLog)
    {
        return volunteerLogMapper.updateVolunteerLog(volunteerLog);
    }

    /**
     * 批量删除填报日志
     * 
     * @param ids 需要删除的填报日志主键
     * @return 结果
     */
    @Override
    public int deleteVolunteerLogByIds(Long[] ids)
    {
        return volunteerLogMapper.deleteVolunteerLogByIds(ids);
    }

    /**
     * 删除填报日志信息
     * 
     * @param id 填报日志主键
     * @return 结果
     */
    @Override
    public int deleteVolunteerLogById(Long id)
    {
        return volunteerLogMapper.deleteVolunteerLogById(id);
    }
}
